package file;

import java.io.File;

public class MkDirDemo {
    public static void main(String[] args) {
        File file= new File("./demo/mjh/qwe/123");
        if (file.exists()){
            System.out.println("已存在");
        }else{
            file.mkdirs();
            System.out.println("该目录已创建");
        }
    }
}
